/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.orderdetail;

import com.xingkeduo.dto.OrderDetailResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class OrderDetail {
    private int error;
    private Object reason;
    private ContentOrderDetail content;

    public void covert(ContentOrderDetail contentOrderDetail, ResponseUtils<OrderDetailResponseDto> orderDetailResponseDto) {
        this.error=orderDetailResponseDto.getStatus()==1?0:1;
        this.reason=orderDetailResponseDto.getMsg();
        this.content = contentOrderDetail;
    }
}